<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:com="http://java.sun.com/jsf/composite/com">
    <ui:composition template="/templates/auth_template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.AddUser_Title}"/>
        </ui:define>
        <ui:define name="body">
            <com:loginStatus/>
            <h:form>
                <table>
                    <tr>
                        <td><h:outputLabel value="#{bundle.Username}"/></td>
                        <td><h:inputText value="#{addUser.username}" 
                                         required="true" requiredMessage="#{bundle.AddUser_UsernameRequired}"/></td>
                    </tr>
                    <tr>
                        <td><h:outputLabel value="#{bundle.Password}"/></td>
                        <td><h:inputText value="#{addUser.password}" required="true" requiredMessage="#{bundle.AddUser_PasswordRequired}"/></td>
                    </tr>
                    <tr>
                        <td><h:outputLabel value="#{bundle.AddUser_Retype}"/></td>
                        <td><h:inputText value="#{addUser.repassword}" required="true" requiredMessage="#{bundle.AddUser_RetypeRequired}"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <h:commandButton value="#{bundle.Add}" action="#{addUser.save}"/>
                            <h:commandButton value="#{bundle.Cancel}"/>
                        </td>
                    </tr>
                </table>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

